<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>add_activites (MySpace::RestV9)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File myspace/API/RestV9.rb, line 213</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_activites</span>(<span class="ruby-identifier">person_id</span>,<span class="ruby-identifier">externalId</span>,<span class="ruby-identifier">title</span>,<span class="ruby-identifier">msgBody</span>,<span class="ruby-identifier">templateParams</span>,<span class="ruby-identifier">titleId</span>)
        <span class="ruby-identifier">body</span> =<span class="ruby-value str">'{
                  &quot;externalId&quot;:&quot;'</span><span class="ruby-operator">+</span><span class="ruby-identifier">externalId</span><span class="ruby-operator">+</span><span class="ruby-value str">'&quot;,
                  &quot;id&quot;:&quot;myspace.com.activity.-1&quot;,
                  &quot;title&quot;:&quot;'</span><span class="ruby-operator">+</span><span class="ruby-identifier">title</span><span class="ruby-operator">+</span><span class="ruby-value str">'&quot;,
                  &quot;body&quot;:&quot;'</span><span class="ruby-operator">+</span><span class="ruby-identifier">msgBody</span><span class="ruby-operator">+</span><span class="ruby-value str">'&quot;,
                  &quot;templateParams&quot;:'</span><span class="ruby-operator">+</span><span class="ruby-identifier">templateParams</span>.<span class="ruby-identifier">to_json</span><span class="ruby-operator">+</span><span class="ruby-value str">',
                  &quot;titleId&quot;:&quot;'</span><span class="ruby-operator">+</span><span class="ruby-identifier">titleId</span><span class="ruby-operator">+</span><span class="ruby-value str">'&quot;
              }'</span>
       <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">call_myspace_api</span>(<span class="ruby-identifier">:activities_v9_app_post</span>,<span class="ruby-identifier">:person_id=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">person_id</span>,<span class="ruby-identifier">:body=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">body</span>)
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>